package com.zyx.concurrentdemo.c03thread;


import com.zyx.concurrentdemo.c02basic.util.FileReader;
import com.zyx.concurrentdemo.cons.Constants;

/**
 * @author Yaxi.Zhang
 * @since 2021/10/13 09:41
 */
public class TestState2 {
    public static void main(String[] args) throws InterruptedException {
        new Thread(() -> {
            FileReader.read(Constants.FILE_FULL_PATH);
            FileReader.read(Constants.FILE_FULL_PATH);
            FileReader.read(Constants.FILE_FULL_PATH);
        }, "t1").start();

        Thread.sleep(1000);
        System.out.println("ok");
    }
}
